//
//  main.m
//  Demo0004
//
//  Created by zTercel on 12-12-28.
//  Copyright (c) 2012年 zTercel. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Rectangle.h"

int main(int argc, const char * argv[])
{
    @autoreleasepool {
        Rectangle* rect = [[Rectangle alloc] init];
       
        NSLog(@"\n初始化后值: \n");
        [rect print];
        
        NSLog(@"\n修改后值: \n");
        [rect setTop: 100];
        [rect setLeft: 100];
        [rect setRight: 300];
        [rect setBottom: 200];
        [rect print];
        
        NSLog(@"\n缩小后copy值: \n");
        [rect inflat:100 Y: 100];
        Rectangle* newRect = [rect copy];
        [newRect print];
        
    }
    return 0;
}

